<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/config/c.tld" prefix="c"%>
<%@ taglib prefix="fn" uri="/WEB-INF/config/fn.tld"%>
<%@ taglib prefix="fmt" uri="/WEB-INF/config/fmt.tld"%>
<%@ taglib uri="/WEB-INF/config/Pagination.tld" prefix="p"%>

<!DOCTYPE HTML>
<html>
  <head>
    <title>品种推介</title>
  </head>
  <body>
	<ul class="breadcrumb">
		<li>
			<i class="icon-home"></i>
			<a href="index.html">首页</a>
			<i class="icon-angle-right"></i>
		</li>
		<li>
			<a href="#">品种推介</a>

		</li>

	</ul>
	<div class="pull-right box">
		<a href="brandActivity/manage/initAdd.html">
			<button class="btn btn-small btn-primary">
				<i class="halflings-icon plus white white star"></i>
				点击添加信息
			</button>
		</a>
	</div>
	<div class="row-fluid ui-sortable">
		<div class="box span12">
			<div class="box-header" data-original-title>
				<h2>
				<i class="halflings-icon white user"></i>
				<span class="break"></span> 推介列表
				</h2>
				<div class="box-icon">
					<a href="#" class="btn-minimize"><i class="halflings-icon white chevron-up"></i></a>
				</div>
			</div>
			<div class="box-content">
				<form action="brandActivity/manage/list.html" id="myform" class="form-horizontal" method="post">
					<div class="row-fluid">
						<div class="span12">
							<div class="control-group">
								<div class="controls">
									搜索: <input type="text" name="keywords" aria-controls="DataTables_Table_0" value="${keywords }">
									<button class="btn btn-small btn-success">查询</button>
								</div>
							</div>
						</div>
					</div>
					<table class="table table-striped table-bordered bootstrap-datatable">
					  <thead>
						  <tr>
							  <th>标题</th>
							  <th>创建时间</th>
							  <th>操作</th>
						  </tr>
					  </thead>   
					  <tbody>
					  <c:if test="${fn:length(paging.data)==0}">
					  	<tr>
					  		<td colspan="4" class="center">
					  			<br/>
					  			<div class="alert alert-block">
									<button type="button" class="close" data-dismiss="alert">×</button>
									<h4 class="alert-heading">提示!</h4>
									<p>未查询到数据.</p>
								</div>
					  		</td>
					  	</tr>
					  </c:if>
					  <c:forEach items="${paging.data}" var="data">
						<tr>
							<td>${data.cnName}</td>
							<td class="center">
								<fmt:formatDate value="${data.createDate}"  pattern="yyyy-MM-dd hh:mm:ss" />
							</td>
							<td class="center">

								<a class="btn btn-info" href="brandActivity/manage/initUpdate/${data.id}.html" title="修改">
									<i class="halflings-icon white edit"></i>
								</a>
								<a class="btn btn-danger" href="brandActivity/manage/delete/${data.id}.html" onclick="return confirm('删除以后数据将不可恢复\n确定删除吗？')" title="删除">
									<i class="halflings-icon white trash"></i>
								</a>
							</td>
						</tr>
						</c:forEach>
					  </tbody>
				  </table>
					<div class="row-fluid">
						<div class="span12">
							<div class="dataTables_info" id="DataTables_Table_0_info">
								共${paging.totalPage}条记录
							</div>
						</div>
						<div class="span12 center">
							<div class="dataTables_paginate paging_bootstrap pagination">
								<p:outpage pageSize="${paging.pageSize}"
									totalPage="${paging.totalPage}"
									curPage="${paging.curPage}" />
							</div>
						</div>
					</div>
				</form>
			</div>
		</div><!--/span-->
	</div><!--/row-->
  </body>
</html>
